﻿/**
*审核输入
*/
Chenxin.UI.SHInputForm = Chenxin.extend(Chenxin.UI.FormCommon,{
    actionUrl:'/service/logic/DealLoan.ashx',
    id:'SHInput',
    renderTo:'divSHInput',
    winCls:'',
    jqmWidth:550,
    defBBtn:true,
    createForm: function() {
        return Chenxin.FormCommon.SHInputForm(this.id);
    },
//    initFormValidator:function(){
//        //合同送银行日期
//        $("#BankLoanDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入合同送银行日期！",
//            onfocus: "合同送银行日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "合同送银行日期不能为空！"
//            },
//            onerror: "合同送银行日期不能为空！"
//        });
//        //合同回公司日期
//        $("#ReceiveLoanDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入合同回公司日期！",
//            onfocus: "合同回公司日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "合同回公司日期不能为空！"
//            },
//            onerror: "合同回公司日期不能为空！"
//        });
//        //评估回公司日期
//        $("#EstimReportBackDate").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入评估回公司日期！",
//            onfocus: "评估回公司日期为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "评估回公司日期不能为空！"
//            },
//            onerror: "评估回公司日期不能为空！"
//        });
//    },
    initEvent: function() {
    },
    saveSucc: function() {
        this.reloadGrid();
    },
    initComponent: function() {
        Chenxin.UI.SHInputForm.superclass.initComponent.call(this);
    }
});

Chenxin.FormCommon.SHInputForm=function(formID){
	//return '<table class="tbl_f"><tr><th style="width:105px; height:26px;">合同送银行日期：</th><td><input style="width:66px;" name="BankLoanDate" class="inputbox_n fl" id="BankLoanDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="BankLoanDateTip" style="float: left; margin-left: 5px; width: 150px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>合同回公司日期：</th><td><input style="width:66px;" name="ReceiveLoanDate" class="inputbox_n fl" id="ReceiveLoanDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="ReceiveLoanDateTip" style="float: left; margin-left: 5px; width: 150px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>评估回公司日期：</th><td><input style="width:66px;" name="EstimReportBackDate" class="inputbox_n fl" id="EstimReportBackDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /><div id="EstimReportBackDateTip" style="float: left; margin-left: 5px; width: 150px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div></td></tr><tr><th>备注：</th><td><textarea name="SHRemark" class="textarea_n" cols="80" rows="10" class="textarea_n" style=" float:left; width: 470px; height: 100px; padding:5px;"></textarea></td></tr><tr><td colspan="2" ><input type="hidden"  name="RecordId" /></td></tr></table>';
	return '<table class="tbl_f"><tr><th style="width:100px;">主贷人：</th><td><input type="text" id="CustomerName" name="CustomerName" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th style="width:100px;">受理银行：</th><td><input type="text" id="ReceiveBank" name="ReceiveBank" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>公积金贷款金额：</th><td><input type="text" id="GJJmoney" name="GJJmoney" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th>公积金贷款年限：</th><td><input type="text" id="GJJyear" name="GJJyear" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>商业贷款金额：</th><td><input type="text" id="SYMoney" name="SYMoney" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th>商业贷款年限：</th><td><input type="text" id="SYYear" name="SYYear" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>代理费：</th><td><input type="text" id="AgencyFee" name="AgencyFee" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td><th>评估费：</th><td><input type="text" id="EvaluateFee" name="EvaluateFee" class="inputbox_n fl" style="width:66px" readonly="readonly"/></td></tr><tr><th>合同送银行日期：</th><td><input style="width:66px;" name="BankLoanDate" class="inputbox_n fl" id="BankLoanDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td><th>合同回公司日期：</th><td><input style="width:66px;" name="ReceiveLoanDate" class="inputbox_n fl" id="ReceiveLoanDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td></tr><tr><th>评估回公司日期：</th><td><input style="width:66px;" name="EstimReportBackDate" class="inputbox_n fl" id="EstimReportBackDate" type="text" onclick="WdatePicker({position:{left:this.getBoundingClientRect().left+1,top:this.getBoundingClientRect().top+22}});" readonly="readonly" /></td></tr><tr><th>地址：</th><td colspan="3"><input type="text" id="Address"  name="Address" class="inputbox_n fl" style="width:390px" readonly="readonly"/></td></tr><tr><th>备注：</th><td colspan="3"><textarea name="SHRemark" cols="80" rows="10" class="textarea_n" style=" float:left; width: 385px; height: 45px; padding:5px;"></textarea></td></tr><tr><td colspan="2" ><input type="hidden"  name="RecordId" /></td></tr></table>';
};